<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>

<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />

<title>奖惩管理</title>

<link th:href="@{/js/jquery.js}" rel="stylesheet" />
<script th:href="@{/css/bootstrap.min.css}"  ></script>
<script th:href="@{/js/bootstrap.min.js}"  ></script>

<link rel="stylesheet" type="text/css" href="../static/css/bootstrap.min.css"/>
<script src="../static/js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script src="../static/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>


<style type="text/css">
	#right{
		position: absolute;
		top: 70px;
		left:300px;
		width:1200px
	}
	table{
		
	}
	td{
		text-align: center;
	}
	.option{
		text-align: center;
	}
</style>
	
</head>
<body>
<div th:replace="Top :: head"></div>
<div th:replace="Top :: left"></div>
<div id="right">
	<ul class="breadcrumb">
		<li><a href="/index">首页</a></li>
		<li><a href="">薪资列表</a></li>
	</ul>
	<div>
		<table class="table table-bordered">
			<tr>
				<th width="8%">薪资单号</th>
				<th width="10%">用户名称</th>
				<th width="8%">部门</th>
				<th width="15%">生成时间</th>
				<th width="10%">基本薪资</th>
				<th width="10%">请假薪资</th>
				<th width="10%">奖惩金额</th>
				<th width="10%">应得工资</th>
				<th>操作</th>
			</tr>
			<tr th:each="salary : ${salarylist}">
				<td th:text="${salary.s_id}">Onions</td>
				<td th:text="${salary.u_nickname}">Onions</td>
				<td th:switch="${salary.d_id}">
					<div th:case="1" th:text="总经办">Onions</div>
					<div th:case="2" th:text="人事部">Onions</div>
					<div th:case="3" th:text="财务部">Onions</div>
					<div th:case="4" th:text="市场部">Onions</div>
				</td>
				<td th:text="${salary.s_date}">Onions</td>
				<td th:text="${salary.u_salary}">Onions</td>
				<td th:text="${salary.h_salary}">Onions</td>
				<td th:text="${salary.rw_salary}">Onions</td>
				<td th:text="${salary.s_total}">Onions</td>
				<td>
					<a th:href="@{'salaryDetails?s_id='+${salary.s_id}}" title="查看详情">查看详情</a>
					<a th:href="@{'delSalary?s_id='+${salary.s_id}}" title="删除">删除</a>
				</td>
			</tr>
		</table>
	</div>
</div>


		
</body>
<script th:inline="javascript">
	var msg1=[[${msg1}]];
	if (msg1!=null){
		alert(msg1);
	}
</script>
<script th:inline="javascript">
	var msg=[[${msg}]];
	if (msg!=null){
		alert(msg);
		window.location.href='salaryIndex';
	}
</script>
</html>